jQuery(document).ready( function(){
	jQuery("#register-my-business").validate({
		rules: {
			firstname : "required" ,
			telephone :"required" ,
			email1: {
					 required: true,
					 email: true
					},
			password1: {
					 required: true,
					 minlength: 6
					},
			company_name : 	"required" ,
			company_type : 	"required" ,
			est : 	"required" ,
			trades : 	"required" ,
			description_txt: {
					 required: true,
					 minlength: 200
					},
			line_1 : "required" ,
			city : "required" ,
			postcode : "required" ,
			terms : "required" 
		},
		messages: {
			firstname : "Name was not entered" ,
			telephone :"Telephone number not entered" ,
			email1: {
					    required: "Email not entered",
					    email: "Invalid email address entered"
					},
			password1: {
					    required: "Password not entered",
					    minlength: "Passwords must be 6-16 characters long"
					},
			company_name : 	"Company name not entered" ,
			company_type : 	"Company type not selected" ,
			est : 	"Company establishment date not entered" ,
			trades : 	"Trade not entered" ,
			description_txt: {
					 required: "Description not entered",
					 minlength: "Description must be of minimum 200 characters"
					},
			line_1 : "Address was not entered" ,
			city : "City was not entered" ,
			postcode : "Invalid postcode entered" ,
			terms : "You must agree to the terms of use" 
		}
	});
});